home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 22
/
Aminet 22 (1997)(GTI - Schatztruhe)[!][Dec 1997].iso
/
Aminet
/
dev
/
misc
/
gms_e.lha
/
GMSDev
/
EModules
/
files
/
files.e
next >
Wrap
Text File
|
1997-09-15
|
3KB
|
109 lines
/*
** $VER: files.e V0.8B
**
** File definitions.
**
** (C) Copyright 1996-1997 DreamWorld Productions.
** All Rights Reserved
*/
OPT MODULE
OPT EXPORT
OPT PREPROCESS
MODULE 'gms/dpkernel','system/register'
/****************************************************************************
** Module information.
*/
CONST FILE_MODVERSION = 0,
FILE_MODREVISION = 8
/****************************************************************************
** Mini structures for source and destination operations.
*/
OBJECT filename
id :INT /* ID_FILENAME */
name :LONG /* Pointer to filename */
ENDOBJECT
/* Memory pointer structure */
OBJECT memptr
id :INT /* ID_MEMPTR */
address :LONG /* Pointer to memory area */
ENDOBJECT
/****************************************************************************
** File Object.
*/
CONST FILEVERSION = 1,
TAGS_FILE = $FFFB0000 OR ID_FILE
OBJECT file
head[1] :ARRAY OF head /* Standard header */
name :LONG /* Pointer to name of the file on disk */
bytepos :LONG /* Current position in file */
size :LONG /* Total size of the file */
flags :LONG /* File flags */
ENDOBJECT
CONST FL_OLDFILE = $00000000,
FL_READ = $00000000,
FL_WRITE = $00000001,
FL_LOCK = $00000002,
FL_NEW = $00000004,
FL_FIND = $00000008,
FL_UNPACK = $00000010,
FL_NEWFILE = $00000020,
FL_SMART = $00000018
CONST FLA_BYTEPOS = TLONG OR 12,
FLA_SIZE = TLONG OR 16,
FLA_FLAGS = TLONG OR 20,
FLA_SOURCE = TAPTR OR 24,
FLA_PREV = TAPTR OR 28,
FLA_NEXT = TAPTR OR 32,
FLA_COMMENT = TAPTR OR 36,
FLA_DATESTAMP = TAPTR OR 40
/****************************************************************************
** Directory Object.
*/
CONST DIRVERSION = 1,
TAGS_DIRECTORY = $FFFB0000 OR ID_DIRECTORY
OBJECT directory
head[1] :ARRAY OF head /* 00: Standard header */
dirlist :PTR TO direntry /* 12: First directory in list (master only) */
filelist :PTR TO fileentry /* 16: First file in list (master only) */
source :PTR TO filename /* 20: Location and Name of this directory */
flags :LONG /* 24: Opening Flags (see file flags) */
comment :LONG /* 28: Pointer to comment string */
userflags :LONG /* 32: User Flags */
datestamp :LONG /*PTR TO time*/ /* 36: Set to time of creation */
ENDOBJECT
CONST DIRA_Source = TAPTR OR 20,
DIRA_OpenFlags = TLONG OR 24,
DIRA_Comment = TAPTR OR 28,
DIRA_UserFlags = TLONG OR 32,
DIRA_DateStamp = TAPTR OR 36
OBJECT direntry
prev :PTR TO direntry
next :PTR TO direntry
source :PTR TO filename
ENDOBJECT
OBJECT fileentry
prev :PTR TO fileentry
next :PTR TO fileentry
source :PTR TO filename
ENDOBJECT